package cn.shop.transcation.TransactionRecord.entity;

import cn.shop.validation.Pc;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 充值req
 *
 * @author jzw
 * @since 2022-01-11 10:10
 */
@Data
public class RechargeInfoReq {

	/**
	 * 充值金额.
	 */
	// @Pattern(regexp = "^[1-9]\\d*$", message = "充值金额为6-10000的整数")
	// @Range(min = 6, max = 10000, message = "充值金额为6-10000的整数")
	private String amount;

	/**
	 * 充值方式
	 */
	@NotNull(message = "缺少支付方式")
	private Long rechargeSolution;

	/**
	 * 充值方式
	 */
	@NotNull(message = "缺少回调地址", groups = Pc.class)
	private String returnUrl;
	/**
	 * 银行代码
	 */
	private String bankCode;

}
